package com.yonyou.brigade.third_parties.common.model;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author jiangzhf@yonyou.com
 * @since 2018-12-25
 */
@TableName("third_property")
public class ThirdProperty extends Model<ThirdProperty> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 键
     */
    private String key;
    /**
     * 值
     */
    private String value;
    /**
     * 字段类型
     */
    private String type;
    /**
     * 第三方类型
     */
    private String channel;
    /**
     * 租户ID
     */
    private String tenant;
    /**
     * 组织PK
     */
    @TableField("org_pk")
    private String orgPk;
    private Date ts;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getChannel() {
        return channel;
    }

    public void setChannel(String channel) {
        this.channel = channel;
    }

    public String getTenant() {
        return tenant;
    }

    public void setTenant(String tenant) {
        this.tenant = tenant;
    }

    public String getOrgPk() {
        return orgPk;
    }

    public void setOrgPk(String orgPk) {
        this.orgPk = orgPk;
    }

    public Date getTs() {
        return ts;
    }

    public void setTs(Date ts) {
        this.ts = ts;
    }

    public static final String ID = "id";

    public static final String KEY = "key";

    public static final String VALUE = "value";

    public static final String TYPE = "type";

    public static final String CHANNEL = "channel";

    public static final String TENANT = "tenant";

    public static final String ORG_PK = "org_pk";

    public static final String TS = "ts";

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "ThirdProperty{" +
        "id=" + id +
        ", key=" + key +
        ", value=" + value +
        ", type=" + type +
        ", channel=" + channel +
        ", tenant=" + tenant +
        ", orgPk=" + orgPk +
        ", ts=" + ts +
        "}";
    }
}
